package com.example.firstprojectnew.config;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @Author: lihua
 * @Date: 2025/5/7 23:19
 * @Version: v1.0.0
 * @Description:
 **/
public class QuzrtzTest implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        String now = LocalDateTime.now().format(DateTimeFormatter.ofPattern("HH:mm:ss"));
        System.out.println("[Quartz] 当前时间：" + now);
    }
}
